﻿@using ControleRepresentante.Logic.Models
@using Telerik.Web.Mvc.UI
@using ControleRepresentante.Common

@model string

@(Html.Telerik().DropDownList()
    .Name("tipo")
    .BindTo(Enum.GetValues(typeof(ContatoType))
        .Cast<ContatoType>()
        .Select(x => new SelectListItem
        {
            Text = x.GetDescription(),
            Value = x.ToString(),
            Selected = x.GetDescription() == Model
        })))